/*
 * @Author: duanguang
 * @Date: 2021-12-18 22:59:11
 * @LastEditTime: 2021-12-18 23:02:10
 * @LastEditors: duanguang
 * @Description: 
 * @FilePath: /legions-server/app/utils/socketResponse.ts
 * 「扫去窗上的尘埃，才可以看到窗外的美景。」
 */
export class SocketRespone<Recevice = {},T = string> {
    recevice: Recevice;
    response: T;
    state: 'complete' | 'pending' | 'none'|'error' = 'none';
    constructor(recevice: Recevice, response: T, state: 'complete' | 'pending' | 'none'|'error') {
        this.recevice = recevice;
        this.response = response;
        this.state = state;
    }
}
